﻿<% include Includes/Header.inc %>
using System.Runtime.Serialization;
<%
_out.targetFile =  util.format('%s/Models/%s.Generator.cs', projectDirectory,table.singular);
%>
using <%= rootNamespace %>.Bases;

namespace <%= rootNamespace %>.Models
{
    [DataContract]
    public partial class <%= table.singular %>
    {
<% 
_.each(table.columns, function(column) { 
%>
        [DataMember]
        public <%= column.dataType.netDataType %><%= column.nullableIndicator %> <%= column.name %> { get; set; }
<% 
});
%>
    }
}